package fun.xiefeihong.video.list.conf

import io.lettuce.core.RedisClient
import org.junit.jupiter.api.Test

class RedisTest {

    @Test
    void testRedis(){
        def client = RedisClient.create("redis://localhost")
        def connection = client.connect()
        def commands = connection.sync()
        commands.set("host", "localhost")
        def value = commands.get("host")
        System.out.println("host" + value)
        connection.close()
        client.shutdown()
    }

}
